package priv.hibernate.entry2;

import java.util.HashSet;
import java.util.Set;

public class Cutomer {

	private Integer cutomerId;
	private String cutomerName;
	private Set<Order> orders=new HashSet<>();

	public Integer getCutomerId() {
		return cutomerId;
	}

	public void setCutomerId(Integer cutomerId) {
		this.cutomerId = cutomerId;
	}

	public String getCutomerName() {
		return cutomerName;
	}

	public void setCutomerName(String cutomerName) {
		this.cutomerName = cutomerName;
	}



	public Set<Order> getOrders() {
		return orders;
	}

	public void setOrders(Set<Order> orders) {
		this.orders = orders;
	}

	public Cutomer() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Cutomer(Integer cutomerId, String cutomerName) {
		super();
		this.cutomerId = cutomerId;
		this.cutomerName = cutomerName;
	}

	@Override
	public String toString() {
		return "Cutomer [cutomerId=" + cutomerId + ", cutomerName=" + cutomerName + ", orders=" + orders + "]";
	}


}
